<template>
  <div>
    <li>
      <h3>姓名：{{ name }}</h3>
      <p>
        爱好：
        <span v-for="item in hobby" :key="item">{{ item }}</span>
      </p>
    </li>
  </div>
</template>

<script>
export default {
  name: 'Item',
  props: ['name', 'hobby'],
};
</script>

<style></style>
